package com.qianyu.core.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qianyu.core.entity.base.PageDTO;
import com.qianyu.core.entity.bean.QqRecycleOrder;
import com.qianyu.core.entity.dto.QqRecycleOrderDto;

public interface QqRecycleOrderService extends IService<QqRecycleOrder> {

    /**
     * 新增回收单
     * @param dto
     * @return
     */
    boolean saveQqRecycleOrder(QqRecycleOrderDto.QqRecycleOrderSaveDto dto);


    /**
     * 查询回收单
     * @param type 0-管理审核查询 1-代理商查询 2-用户查询
     */
    Page<QqRecycleOrder> pageList(PageDTO dto, Integer type);

    /**
     * 审核回收单
     */
    boolean checkRecycleOrder(QqRecycleOrderDto.QqRecycleOrderCheckDto dto);

}
